/**
 * Created by zhubin on 21/06/2017.
 */

const Koa = require('koa');
const app = new Koa();
const templating = require('./templating');

// add nunjucks as view:
app.use(templating('views', {
    noCache: !isProduction,
    watch: !isProduction
}));

app.use(function *() {
    ctx.render
});



app.listen(3000);